<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
	<div resultId="0" quesId="${quesId}" parentId="0" class="innerMenu">
		<c:choose>
			<c:when test="${type == 0}">
				<a href="javascript:void(0)"> 新建一张调查表 &gt;&gt;</a>
			</c:when>
			<c:otherwise>
				<a href="javascript:void(0)"> 新建一条记录 &gt;&gt;</a>
			</c:otherwise>
		</c:choose>	
	</div>
	<div class="pager">
		<c:forEach begin="1" end="${pager.pageCount}" var="index">
			<c:choose>
				<c:when test="${index == pager.pageNumber}">
					<b>[${index}]</b>
				</c:when>
				<c:otherwise>
					<a quesId="${quesId}" pn="${index}" href="javascript:void(0)">
						[${index}]
					</a>
				</c:otherwise>
			</c:choose>			
		</c:forEach>
	</div>
	<div class="resultTreeShell">
		<c:forEach items="${resultSet}" var="result">
			<div resultId="${result.id}" quesId="${result.quesId}" parentId="0" class="node">
				<img class="handle" src="<c:url value="/images/handle.gif"/>"
				open="<c:url value="/images/handle_open.gif"/>"
				close="<c:url value="/images/handle.gif"/>">
					<a href="javascript:void(0)" title="create by [${result.user}]">${result.brief}</a>
					<em>${result.createTime}</em>
				<div class="sub"></div>
			</div>
		</c:forEach>
	</div>
</body>
</html>